body {
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
    color: #000;
    background: #f2f2f2;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}
ul{
    list-style: none;
    /* 清除默认的边距值 */
    margin: 0;
    padding: 0;
}
a{
    text-decoration: none;
    color: #222;
}
div{
    /* css3盒子模型 */
    box-sizing: border-box;
}
/* 搜索模块 */
.search-index{
    display: flex;
    /* 固定定位跟父级没有关系，以屏幕为准 */
    position: fixed;
    top: 0;
    left: 50%;
    /* 因为left：50%，要返回到中间，居中对齐写法 */
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    /* 固定定位要有宽度 */
    width: 100%;
    height: 44px;
    max-width: 540px;
    min-width: 320px;
    background-color: #f6f6f6;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}
.search{
    position: relative;
    /*步骤② 占用剩余空间 */
    flex: 1;
    height: 26px;
    /* 因为设置了css3盒子模型，且有边框高度上下各为1，计算盒子内部高度即可得到行高 */
    line-height: 24px;
    border: 1px solid #ccc;
    margin: 8px 10px;
    padding-left: 25px;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
    /* 盒子阴影：水平 垂直 范围 颜色 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);

}
.search::before{
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    background: url(../images/sprite.png) no-repeat -59px -279px;
    background-size: 104px auto;
}
.user{
    /* 步骤① */
    width: 44px;
    height: 44px;
    font-size: 12px;
    text-align: center;
    color: #2eaae0;
}
.user::before{
    content: '';
    /* 伪元素为行内元素，没有宽高，要转换为块级元素 */
    display: block;
    width: 23px;
    height: 23px;
    background: url(../images/sprite.png)no-repeat -59px -194px;
    /* 缩放图片 */
    background-size:104px auto ;
    margin: 4px auto -2px;
}
/* 焦点图模块 */
.focus{
    padding-top: 44px;
}
.focus img{
    width: 100%;
}

/* 局部导航栏 */
.local-nav{
    display: flex;
    height: 64px;
    background-color: #fff;
    border-radius: 8px;
    margin: 3px 4px ;
}
.local-nav li{
    flex: 1;
}
.local-nav a{
    display: flex;
    flex-direction: column;
    /*  侧轴居中对齐*/
    align-items: center;
    font-size: 12px;
}
/* 属性选择器 */
.local-nav li [class^="local-nav-icon"]{
    width: 32px;
    height: 32px;
    background-color: pink;
    margin-top: 8px;
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 32px auto;
}
.local-nav li .local-nav-icon-icon2{
    background-position: 0 -32px;
}
.local-nav li .local-nav-icon-icon3 {
    background-position: 0 -64px;
}
.local-nav li .local-nav-icon-icon4 {
    background-position: 0 -96px;
}
.local-nav li .local-nav-icon-icon5 {
    background-position: 0 -128px;
}
/* 主导航栏模块 */
nav{
    overflow: hidden;
    border-radius: 8px;
    margin: 0 4px 3px;
}
.nav-common{
    display: flex;
    height: 88px;
    background-color: pink;
}
.nav-common:nth-child(2){
    margin: 3px 0;
}
.nav-items{
    /* 三个小盒子各占三分之一 */
    flex: 1;
    display: flex;
    /* 父级盒子主轴设置为y轴 */
    flex-direction: column;
}
.nav-items a{
    flex: 1;
    text-align: center;
    line-height: 44px;
    color: #fff;
    font-size: 14px;
    /* 文字阴影：水平 垂直 透明度 */
    text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
}
.nav-items a:nth-child(1){
    border-bottom: 1px solid #fff;
}
.nav-items:nth-child(1) a{
    /* 删除下划线 */
    border: 0;
    background: url(../images/hotel.png) no-repeat bottom center;
    /* 这是三倍图 */
    background-size:121px auto ;
}
/* -n+2表示选择前面两个盒子 */
.nav-items:nth-child(-n+2){
    border-right: 1px solid #fff;
}
/* 背景线性渐变 */
.nav-common:nth-child(1){
    background: -webkit-linear-gradient(left,#fa5a55,#fa994d);
}
.nav-common:nth-child(2){
    background: -webkit-linear-gradient(left,#4b90ed,#53bced);
}
.nav-common:nth-child(3) {
    background: -webkit-linear-gradient(left, #34c2a9, #6cd559);
}
/* 侧导航栏模块 */
.subnav-entry{
    display: flex;
    border-radius: 8px;
    background-color: #fff;
    margin: 0 4px;
    /* 换行 */
    flex-wrap: wrap;
    padding: 5px 0;
    box-shadow:0 2px 4px rgba(0, 0, 0, 0.2) ;
}
.subnav-entry li{
    /* 相对于父级盒子来说，可以写百分比% */
    flex: 20%;
}
.subnav-entry a{
    display: flex;
    /* 主轴为y轴 */
    flex-direction: column;
    /* 让父盒子里的子盒子垂直居中 */
    align-items: center;
    font-size: 12px;
}
.subnav-entry li [class^="subnav-entry-icon"]{
    width: 28px;
    height: 28px;
    background-color: pink;
    margin-top: 4px;
    background: url(../images/subnav-bg.png) no-repeat 0 0;
    background-size: 28px auto;
}
.subnav-entry li .subnav-entry-icon-icon2{
    background-position: 0 -28px;
}
.subnav-entry li .subnav-entry-icon-icon3 {
    background-position: 0 -63px;
}
.subnav-entry li .subnav-entry-icon-icon4 {
    background-position: 0 -321px;
}
.subnav-entry li .subnav-entry-icon-icon5 {
    background-position: 0 -96px;
}
.subnav-entry li .subnav-entry-icon-icon6 {
    background-position: 4px -163px;
}
.subnav-entry li .subnav-entry-icon-icon7 {
    background-position: 0 -198px;
}
.subnav-entry li .subnav-entry-icon-icon8 {
    background-position: 0 -128px;
}
.subnav-entry li .subnav-entry-icon-icon9 {
    background-position: 0 -228px;
}
.subnav-entry li .subnav-entry-icon-icon10 {
    background-position: 4px -284px;
}
/* 热门活动模块 */
.sales-box{
    border-top: 1px solid #bbb;
    background-color: #fff;
    margin: 4px;
}
.sales-hd{
    position: relative;
    height: 44px;
    border-bottom: 1px solid #ccc;
}
.sales-hd h2{
    position: relative;
    /* 让文字隐藏 */
    text-indent: -999px;
    overflow: hidden;
}
.sales-hd h2::after{
    position: absolute;
    top: 8px;
    left: 20px;
    content: '';
    width: 79px;
    height: 15px;
    background:url(../images/hot.png)no-repeat 0 -20px;
    background-size: 79px auto;
}
.more{
    position: absolute;
    top: 0;
    right: 8px;
    background: -webkit-linear-gradient(left,#ff506c,#ff6bc6);
    border-radius: 15px;
    padding: 3px 20px 3px 10px;
    font-size: 12px;
    color: #fff;
}
.more::after{
    content: '';
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}
.row{
    display: flex;
}
.row a{
    flex: 1;
    border-bottom: 1px solid #eee;
}
.row a:nth-child(1){
    border-right: 1px solid #eee;
}
.row a img{
    width: 100%;
}



